﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using QuickApp;
using QA.Wpf;
using System.Diagnostics;
using SQLSilver.ViewModels;

namespace SQLSilver
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class DbBrowserView : IDbBrowserView
    {
        public DbBrowserView()
        {
            InitializeComponent();
            
            this.DataContext = new DbBrowserViewModel(this);
            
        }
        

        public bool PromptForSaveChanges()
        {
            MessageBoxResult result = MessageBox.Show("Do wou want to save the changes you've made?", "Save Changes", MessageBoxButton.YesNo, MessageBoxImage.Question);
            return result == MessageBoxResult.Yes;
        }
    }
}
